<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('seal/blacklist/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('SEAL_BLACKLIST_KIND') ?>', name: 'kind', width: 100,},
                        {display: '<?= translate('SEAL_BLACKLIST_DATA') ?>', name: 'data', width: 100},
                        {display: '<?= translate('SEAL_BLACKLIST_ENDTIME') ?>', name: 'endtime', width: 150},
                        {display: '<?= translate('SEAL_BLACKLIST_REASON') ?>', name: 'reason', width: 150},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp, toggle: false}
                    ],
                    buttons: [
                        {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("seal/blacklist/add") ?>',
                    del_url: '<?= site_url("seal/blacklist/del/") ?>',
                });

            });
        </script>       
    </body>
</html>